import request from '@/utils/request'

// 查询谈话记录列表
export function listTh(query) {
  return request({
    url: '/event/th/list',
    method: 'get',
    params: query
  })
}

export function queryTh(query) {
  return request({
    url: '/event/th/query',
    method: 'post',
    data: query
  })
}

// 查询谈话记录详细
export function getTh(thId) {
  return request({
    url: '/event/th/' + thId,
    method: 'get'
  })
}

// 新增谈话记录
export function addTh(data) {
  return request({
    url: '/event/th',
    method: 'post',
    data: data
  })
}

// 修改谈话记录
export function updateTh(data) {
  return request({
    url: '/event/th',
    method: 'put',
    data: data
  })
}

// 删除谈话记录
export function delTh(thId) {
  return request({
    url: '/event/th/' + thId,
    method: 'delete'
  })
}
